<%@ page language="java" pageEncoding="UTF-8" import="com.king.cms.db.*,com.king.cms.common.*,com.king.cms.util.page.*,java.io.*,java.util.*"%> 

<%   
	String pageFunc = "模版预览";		//功能描述 
	String path = request.getContextPath();	
	String templateFile = request.getParameter("templateFile");
	String width = request.getParameter("width");
	String height = request.getParameter("height");
	ZoomImage image = new ZoomImage(Integer.parseInt(width),Integer.parseInt(height));
	image.createImage(new FileInputStream(request.getRealPath("/")+FileRw.getFileSavePath("")+templateFile), new File(request.getRealPath("/")+"//previewimage//new_"+templateFile));
	 
	 
%>
 

 
<html>
<head>
<title><%=pageFunc%></title>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 

<script language="javascript">
function goback()
{
	window.close();
}
</script>
 

</head>
 
<body   leftmargin="0" topmargin="0"  background="<%=path %>/previewimage/new_<%=templateFile %>" marginwidth="0" marginheight="0">
 <table width="100%" style="height:100%" valign="bottom" border="0" >
 <tr> 
    <td><div align="right" height="98%"> </div>&nbsp;</td>
  </tr>
  <!--<tr height="2%"> 
    <td><div align="right" ><a href="javascript:window.close()">关闭</a>&nbsp;&nbsp;&nbsp;
	<a href="javascript:window.print()">打印</a></div></td>
  </tr>-->
  </table>
 
 
  

   
</body>
</html>
